package mysql

import "gorm.io/gorm"

type House struct {
	gorm.Model
	Name    string  `json:"name" gorm:"type:varchar(30);not null;comment:'房屋名称'"`
	Area    float64 `json:"area" gorm:"type:decimal(10,2);not null;comment:'房屋面积'"`
	Price   float64 `json:"price" gorm:"type:decimal(10,2);not null;comment:'租价'"`
	Address string  `json:"address" gorm:"type:varchar(100);not null;comment:'地址'"`
}
